# 导入turtle包的所有内容:
from turtle import *

#长方形
def rectangle():
    # 设置笔刷宽度:
    width(10)

    # 前进:
    forward(200)
    # 右转90度:
    right(90)

    # 笔刷颜色:
    pencolor('red')
    forward(100)
    right(90)

    pencolor('green')
    forward(200)
    right(90)

    pencolor('blue')
    forward(100)
    right(90)



#五角星
def drawStar(x, y):
    pu()
    goto(x, y)
    print(str(x)+'---------'+str(y))
    pd()
    # set heading: 0
    #seth(0)
    for i in range(5):
        fd(40)
        rt(144)

for x in range(0, 250, 50):
    drawStar(x, 0)
    
    
    
    
# 调用done()使得窗口等待被关闭，否则将立刻关闭窗口:
done()